 <#ftl encoding="UTF-8" />
            <form id="form_data" class="form__data_content">
                <div id="panelTop" style="position:relative; height:50px; border-bottom: 1px solid #ddd; background-color:#fff;">
                    <div id="btnPanel_01" style="position:absolute; display:inline-block; top:12px; left: 8px; width:auto; padding:0px;">
                        <button type="button" name="_ButBack" id="ButBack" class="act__button" onclick="_InstancePageHeader.DoBack();"><i class="fa-all fa-1x fa-reply" style="margin-right:3px;"></i>返回</button>
                        <button type="button" name="_ButNew" id="ButNew" class="act__button act__save" onclick="_InstancePageHeader.New();"><i class="fa-all fa-1x fa-plus" style="margin-right:3px;"></i>增加</button>
                        <button type="button" name="_ButSave" id="ButSave" data_checked="is" class="act__button act__save" onclick="_InstancePageHeader.Save();"><i class="fa-all fa-1x fa-save" style="margin-right:3px;"></i>保存</button>
                        <button type="button" name="_ButCheck" id="ButCheck" class="act__button" onclick="_InstancePageHeader.DoCheck();"><i class="fa-all fa-1x fa-eye" style="margin-right:3px;"></i>审核</button>
                        <button type="button" name="_ButUnCheck" id="ButUnCheck" class="act__button" onclick="_InstancePageHeader.Uncheck();"><i class="fa-all fa-1x fa-eraser" style="margin-right:3px;"></i>反审</button>
                        <button type="button" name="_ButPrint" id="ButPrint" class="act__button" onclick="_InstancePageHeader.DoPrintPreview();" style="margin-left:15px;"><i class="fa-all fa-1x fa-print" style="margin-right:3px;"></i>打印预览</button>
                    </div>
                    <div id="rec_position" style="position:absolute; display:inline-block; right:80px; top:18px; width:auto;">
                        <span id="rec_cur_row">15</span> / <span id="rec_total_rows">15</span>
                    </div>
                    <div class="panel__toolbar" style="position:absolute; display:inline-block; top:12px; right:8px;">
                        <div class="panel__toolbar_item">
                            <button type="button" class="toolbar__button" name="_ButPrev" id="ButPrev" title="前一条" onclick="_InstancePageHeader.PrevRecord();"><i class="fa-all fa-1x fa-angle-left" style="margin-right:3px;"></i></button>
                        </div>
                        <div class="panel__toolbar_item" disabled="disabled">
                            <button type="button" class="toolbar__button" name="_ButNext" id="ButNext" title="后一条" onclick="_InstancePageHeader.NextRecord();"><i class="fa-all fa-1x fa-angle-right" style="margin-right:3px;"></i></button>
                        </div>
                    </div>
                </div>
            
                <div class="data__table_wrapper">
                    <table class="data__table">
                        <colgroup>
                            <col style="width: 7%;" />
                            <col style="width: 17%;" />
                            <col style="width: 7%;" />
                            <col style="width: 17%;" />
                            <col style="width: 7%;" />
                            <col style="width: 17%;" />
                            <col style="width: 7%;" />
                            <col />
                        </colgroup>
                        <tbody>
                            <tr>
                                <td class="td__label">
                                    <label for="BillNo">出库单号<em>★</em></label>
                                </td>
                                <td>
                                    <input type="text" id="BillNo" name="_BillNo" tabindex="1" style="width:98%;" />
                                </td>
                                <td class="td__label">
                                    <label for="DateOfStockOut">出库日期<em>★</em></label>
                                </td>
                                <td>
                                    <div id="ChoiceDateOfStockOut" class="form_input_dropdown_wrapper" style="width:135px;">
                                        <input type="text" id="DateOfStockOut" name="_DateOfStockOut" class="select-dropdown" readonly="readonly" style="color:#000;" tabindex="2" />
                                        <span class="dropdown_button"><i class="fa-all fa-1-1 fa-calendar"></i></span>
                                    </div>
                                </td>
                                <td class="td__label">
                                    <label for="MaterialRequisitionUnitName">领料单位<em>★</em></label>
                                </td>
                                <td>
                                    <input type="hidden" id="RsHeaderId" name="_RsHeaderId" value="0" tabindex="3" />
                                    <div id="ChoiceMaterialRequisitionUnit" class="form_input_dropdown_wrapper" style="width:100%;" onclick="_InstancePageHeader.DoChoiceMaterialRequisitionUnit();">
                                        <input type="text" id="MaterialRequisitionUnitName" name="_MaterialRequisitionUnitName" class="select-dropdown with_select_flag" style="color:#000;" readonly="readonly" tabindex="3" />
                                    </div>
                                </td>
                                <td class="td__label">
                                    <label for="StyleNo">款号<em>★</em></label>
                                </td>
                                <td>
                                    <input type="text" id="StyleNo" name="_StyleNo" tabindex="4" style="width:98%;" readonly="readonly"/>
                                </td>                               
                            </tr>
                            <tr>
                                <td class="td__label"><label for="RequisitedByName">领料员</label></td>
                                <td>
                                    <input type="hidden" id="RequisitedBy" name="_RequisitedBy" value="" />
                                    <div id="ChoiceRequisitedBy" class="form_input_dropdown_wrapper" style="width:130px;" onclick="_InstancePageHeader.DoChoiceRequisitedBy();">
                                        <input type="text" id="RequisitedByName" name="_RequisitedByName" class="select-dropdown with_select_flag" style="color:#000;" readonly="readonly" tabindex="5" />
                                      </div>
                                </td>
                                <td class="td__label"><label for="ReasonId">出库类型<em>★</em></label></td>
                                <td>
                                    <select id="ReasonId" name="_ReasonId" tabindex="6">
                                        <option value="-1">--- 请选择 ---</option>
                                        <#if StockReasonList?exists>
                                        <#list StockReasonList as Reason>
                                        <option value="${Reason.reasonId}">${Reason.reasonName}</option>
                                        </#list>
                                        </#if>
                                    </select>
                                </td>
                                <td class="td__label">
                                    <label>操作情况</label>
                                </td>
                                <td>
                                    <input type="text" id="UpdatedByName" name="_UpdatedByName" tabindex="7" style="width:90px;" readonly="readonly" />
                                    <input type="text" id="UpdatedDate" name="_UpdatedDate" tabindex="8" style="width:90px;" readonly="readonly" />
                                </td>
                            </tr>
                            <tr>
                                <td class="td__label" style="vertical-align:top; padding-top:8px;">
                                    <label for="Description">备注</label>
                                </td>
                                <td colspan="7">
                                    <textarea class="area" id="Description" name="_Description" rows="3" tabindex="9" style="width:100%; height:71px; resize:none;"></textarea>
                                </td>
                            </tr>                           
                        </tbody>
                    </table>
                </div>
            </form>

            <input id="Action" type="hidden" value="<#if action?exists>${action}<#else>0</#if>" />
            <input id="HeaderId" type="hidden" value="<#if stockOutId?exists>${stockOutId}<#else>0</#if>" />
            <input id="BalanceFlag" type="hidden" value="0" />
            <input id="QuotedFlag" type="hidden" value="0" />
          
            <div style="position:absolute; top:13px; right:200px;">
                <span id="CheckedTip" class="huzo_status huzo_status__green">状态：已审核</span>
            </div>

            <!-- 明细部分 -->
            <div id="panelSlave" style="position:relative; top:0px;">
                <!-- 折叠标记 -->
                <div id="hPanelSplitter" title="隐藏主表"><i class="fa-all fa-angle-double-up"></i></div>
                <!-- 明细内容 -->
                <ul id="tabPanelHeader" class="tabstrip" style="top:0px; width:100%">
                    <li id="menu_01" class="tabInactive" style="margin-left:25px;">
                         <div>
                             <span class="tab_stretch"><span class="tabtext"><abbr class="ls_01">出库明细</abbr></span></span>
                         </div>
                     </li>
                 </ul>
                <div id="tabPanelData" class="tab__wrapper" style="top:0px; height:auto;">
                    <div id="tabWrapper_01" class="tab__content" style="padding-top:5px; width:100%; padding:0 8px;">
                        <div id="panelSlaveButton_01" style="clear:both; position:relative; top:5px; z-index:+1;">
                            <input type="button" name="_but_update_lines" id="but_update_lines" class="act__button act__save" value="保存" onclick="_InstancePageLines.SaveLines(1);" />
                            <input type="button" name="_but_insert_lines" id="but_insert_lines" class="act__button act__save" value="补充" onclick="_InstancePageLines.Supplement();" />
                            <button type="button" name="_ButDeleteLines" id="ButDeleteLines" class="act__button act__save" onclick="_InstancePageLines.BatchDeleteLines();"><i class="fa-all fa-1x fa-minus" style="margin-right:5px;"></i>批量删除</button>
                        </div>
                        <div id="panelSlaveData_01" style="position:relative; top:10px;">
                            <table style="width:100%;">
                                <tr>
                                    <td style="overflow:hidden; width:713px;">
                                        <div id="divH11" style="overflow:hidden; border:none;">
                                            <table id="tabHeader11" class="layout display" style="width:100%;">
                                                <colgroup>                                                
                                                    <col style="width: 27px;" />
                                                    <col style="width: 36px;" />
                                                    <col style="width: 90px;" />
                                                    <col style="width: 200px;" />
                                                    <col style="width: 160px;" />
                                                    <col style="width: 200px;" />
                                                </colgroup>
                                                <thead>
                                                    <tr>  
                                                        <th>
                                                          <label class="btn" for="CheckAll" style="margin-left:3px;"><input id="CheckAll" type="checkbox" onclick="_InstancePageLines.DoCheckAll($(this),'_check_row');" /><i></i><span></span></label>
                                                        </th>                                                 
                                                        <th style="text-align:center;">删除</th>
                                                        <th>供应商</th>
                                                        <th>材料名称</th>
                                                        <th>用料部位</th>
                                                        <th>品号</th>
                                                    </tr>
                                                </thead>
                                            </table>
                                        </div>
                                    </td>
                                    <td style="position:relative;">
                                        <div id="divH12" class="header__with__margin">
                                            <table id="tabHeader12" class="layout display" style="margin-left:-1px; width:100%;">
                                                <colgroup>
                                                    <col style="width: 68px;" />
                                                    <col style="width: 80px;" />
                                                    <col style="width: 60px;" />
                                                    <col style="width: 60px;" />
                                                    <col style="width: 32px;" />
                                                    <col style="width: 120px;" />
                                                    <col style="width: 67px;" />
                                                    <col style="width: 67px;" />
                                                    <col style="width: 67px;" />
                                                    <col style="width: 70px;" />
                                                    <col style="width: 120px;" />
                                                    <col style="width: 90px;" />
                                                    <col style="width: 70px;" />
                                                    <col style="width: 70px;" />
                                                    <col style="width: 70px;" />
                                                    <col style="width: 80px;" />
                                                    <col style="width: 70px;" />
                                                    <col style="width: 90px;" />
                                                    <col style="width: 90px;" />
                                                    <col style="width: 90px;" />
                                                    <col style="width: 90px;" />
                                                    <col style="width: 90px;" />
                                                    <col style="width: 417px;" />
                                                </colgroup>
                                                <thead>
                                                    <tr>
                                                        <th>加工合同数</th>
                                                        <th>生产浮动增量</th>
                                                        <th style="text-align:center;">套裁数</th>
                                                        <th style="text-align:center;">规格/CM</th>
                                                        <th>单位</th>
                                                        <th>成品颜色</th>
                                                        <th>工厂单用量</th>
                                                        <th>生产单用量</th>
                                                        <th>套裁单用量</th>
                                                        <th>净幅(单耗)</th>
                                                        <th>材料颜色</th>
                                                        <th>材料规格</th>
                                                        <th>必要数</th>
                                                        <th>生产必要数</th>
                                                        <th>套裁数量</th>
                                                        <th>库存数</th>
                                                        <th>补给数</th>
                                                        <th>生产损耗数</th>
                                                        <th>生产补给数</th>
                                                        <th>已出库</th>
                                                        <th class="edit__column">本次出库</th>
                                                        <th class="edit__column">调配库存</th>
                                                        <th class="edit__column">备注</th>
                                                    </tr>
                                                </thead>
                                            </table>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="vertical-align:top; width:713px;">
                                        <div id="divD11" class="grid__data_wrapper" style="border:none; border-bottom:1px solid #c6c3bd; overflow:hidden;">
                                            <table id="tabData11" class="responsive__table" style="margin-top:-1px;">
                                                <colgroup>                                               
                                                    <col style="width: 27px;" />
                                                    <col style="width: 36px;" />
                                                    <col style="width: 90px;" />
                                                    <col style="width: 200px;" />
                                                    <col style="width: 160px;" />
                                                    <col style="width: 200px;" />
                                                </colgroup>
                                                <tbody>
                                                </tbody>
                                            </table>
                                        </div>
                                    </td>
                                    <td class="with__border__lines" style="vertical-align:top;">
                                        <div id="divD12" class="grid__data_wrapper" style="overflow:scroll;" onscroll="_InstancePageLines.ScrollTo();">
                                            <table id="tabData12" class="responsive__table" style="border-bottom:1px solid #c6c3bd; margin-top:-1px; margin-left:-1px; width:100%;">
                                                <colgroup>
                                                    <col style="width: 68px;" />
                                                    <col style="width: 80px;" />
                                                    <col style="width: 60px;" />
                                                    <col style="width: 60px;" />
                                                    <col style="width: 32px;" />
                                                    <col style="width: 120px;" />
                                                    <col style="width: 67px;" />
                                                    <col style="width: 67px;" />
                                                    <col style="width: 67px;" />
                                                    <col style="width: 70px;" />
                                                    <col style="width: 120px;" />
                                                    <col style="width: 90px;" />
                                                    <col style="width: 70px;" />
                                                    <col style="width: 70px;" />
                                                    <col style="width: 70px;" />
                                                    <col style="width: 80px;" />
                                                    <col style="width: 70px;" />
                                                    <col style="width: 90px;" />
                                                    <col style="width: 90px;" />
                                                    <col style="width: 90px;" />
                                                    <col style="width: 90px;" />
                                                    <col style="width: 90px;" />
                                                    <col style="width: 400px;" />
                                                </colgroup>
                                                <tbody>
                                                </tbody>
                                            </table>
                                        </div>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
